home *** CD-ROM | disk | FTP | other *** search
/ AMIGA PD 1 / AMIGA-PD-1.iso / NetBSD / docs-netbsd / Mailinglist-Archive / 1994-10.gz / 1994-10 / 000303_owner-amiga@netbsd.org_Thu Oct 13 17:52:18 1994.msg < prev    next >
Text File  |  1994-11-20  |  3KB  |  57 lines

  1. From: osymh@gemini.oscs.montana.edu (Michael L. Hitch)
  2. X-Mailer: Mail User's Shell (7.2.5 10/14/92)
  3. To: "Stephen J. Roznowski" <sjr@zombie.ncsc.mil>
  4. Subject: Re: Serial port flowcontrol problems
  5. Cc: amiga@netbsd.org
  6. Sender: owner-amiga@netbsd.org
  7.  
  8. On Oct 13, 12:32am, "Stephen J. Roznowski" wrote:
  9. > I'm running an A3000 with a kernel built from the 941011 sup.
  10. > When I connect to a remote system using the 189 version of kermit at
  11. > 38400 and cause a lot output to be generated (for example, by executing
  12. > lptest), my modem locks up. Redoing the same test at 19200 seems to
  13. > work. Just before the session locks up I get a lot of ^Gs printed.
  14. > Has anyone else see this?
  15.  
  16.   I have had this problem before.  I was using kermit and connected to a
  17. remote system through a DEC terminal server.  If I connected to an
  18. Ultrix system and did a large amount of output (i.e. more than 1 screen
  19. full), my Ultrix session would lock up.  I could send a break and get
  20. back to the the terminal server, but my session to Ultrix was hung.  At
  21. times, I would see a number of ^G characters also.  If I connected to a
  22. VMS system and did some output, I would get some kind of I/O error.
  23.  
  24.   I think there is a problem in kermit that doesn't set crtscts on the
  25. serial line, even if you tell kermit to do rts/cts flow control.  When
  26. the NetBSD tty input handler gets a lot of input and the input buffer is
  27. close to filling up, it will try to stop the input.  If crtscts isn't
  28. set, it will send X-OFF.  The buffering of data in the serial input
  29. interrupt (up to 512 characters) will still allow a number of characters
  30. to be still be passed to the tty input, which could overflow the tty
  31. input buffer.  If the tty buffer fills up, the tty input routine echoes
  32. a bell (^G) for each character received.
  33.  
  34.   To further aggravate the problem, if the modem is configured for rts/cts
  35. flow control, the X-OFF sent by the tty input routine will be sent to the
  36. remote system.  In this case, there is very likely to be quite a bit of
  37. data buffered in the modems, which will also cause the tty input buffer
  38. to overflow.
  39.  
  40.   I think I was able to force the serial line to crtscts by either
  41. setting it prior to entering kermit, or executing an stty command after
  42. kermit set the line.
  43.  
  44.   I think I also saw a patch to kermit to fix setting crtscts on the
  45. serial port.  There is also a newer version of kermit available, which I
  46. think does set crtscts properly.  The kermit I'm running now sets
  47. crtscts properly, and I had much less trouble with this type of problem.
  48.  
  49. Michael
  50.  
  51. -- 
  52. Michael L. Hitch            INTERNET:  osymh@montana.edu
  53. Computer Consultant
  54. Office of Systems and Computing Services
  55. Montana State University    Bozeman, MT    USA